package com.xidian.zhiancloud.dao.riskcontrol;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.Page;
import com.xidian.zhiancloud.model.riskcontrol.TriskWarSingManaStaList;
import com.xidian.zhiancloud.model.riskcontrol.entity.TWarSingManaStaEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 风险管控-风险警示标志管理
 */
public interface TriskWarSingManaStaMapper extends BaseMapper<TriskWarSingManaStaList> {

    Page<TriskWarSingManaStaList> getTriskWarSingManaStaList(
            @Param("searchkey") String searchkey,
            @Param("isCondition") String isCondition,
            @Param("companyId") Long companyId);

    int addTriskWarSingManaSta(
            @Param("data") TriskWarSingManaStaList data);

    int updateTriskWarSingManaSta(
        @Param("id") String id,
        @Param("data") TriskWarSingManaStaList data);

    int deleteTriskWarSingManaSta(List<String> list);

    List<TriskWarSingManaStaList> getByTWarSingManaStaList(String id);

    Page<TriskWarSingManaStaList> getExportTWarSingManaStaData
            (@Param("companyId") Long companyId,List<Object> list);

    int addSingManaStaEntity(@Param("companyId") Long companyId,
         @Param("userId") String userId,List<TWarSingManaStaEntity> wsiManList);

}
